<?php
	
	$name=$_REQUEST["userName"];
	$sex=$_REQUEST["sex"];
	$pwd=$_REQUEST["pwd"];
	$tel=$_REQUEST["tel"];
	
	$link=mysqli_connect("localhost:3306","root","root","lidu");
	if(!($link)){
		echo "数据库连接失败";
	}else{
		
		$sql02="INSERT login(userName,sex,pwd,tel) VALUES ('{$name}','{$sex}','{$pwd}','{$tel}')";
		$res=mysqli_query($link,$sql02);
		echo "输入成功";
		
	}
?>